package com.heima.admin.service.impl;

import com.heima.admin.service.AdminService;
import com.heima.apis.user.IUserClient;
import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private IWemediaClient wemediaClient;

    @Autowired
    private IUserClient iUserClient;

    @Override
    public ResponseResult saveSensitive(WmSensitive wmSensitive) {
        return wemediaClient.saveSensitive(wmSensitive);
    }

    @Override
    public ResponseResult deleteSensitive(Integer id) {
        return wemediaClient.deleteSensitive(id);
    }

    @Override
    public ResponseResult updateSensitive(WmSensitive wmSensitive) {
        return wemediaClient.updateSensitive(wmSensitive);
    }

    @Override
    public ResponseResult selectSensitive(SensitiveDto sensitiveDto) {
        return wemediaClient.selectSensitive(sensitiveDto);
    }

    @Override
    public ResponseResult userScan(AuthDto dto) {
        return iUserClient.userScan(dto);
    }

    @Override
    public ResponseResult failScan(AuthDto dto) {
        return iUserClient.failScan(dto);
    }

    @Override
    public ResponseResult passScan(AuthDto dto) {
        return iUserClient.passScan(dto);
    }
}
